/**
 * URL统一管理服务
 * Created by wangwj on 2016/6/4.
 */
angular.module("MetronicApp").service("UrlConfigService", function () {
    var host = "";
    var adminRootPath = "/yyjc";
    // var adminRootPath = "";
    this.urlConfig = {
        appCommon: {
            authorizations: {
                myMenus: adminRootPath + "/data/w/authorizations/myAuthorizedMenus.json"
            },
            login: {
                logout: host + "/uap/logout"
            }
        },
        dataDictionary: {
            url: host + adminRootPath + "/w/dicts/sync"
        },
        fileStorage: {
            getUploadUrl: host + adminRootPath + "/uploadUrl",
            downloadUrl: host + adminRootPath + "/download"
        },
        decisionAnalysis: {
            portray: {
                labelSystem: {
                    list: host + adminRootPath + "/data/w/decisionAnalysis/portray/labelSystem/social.json",
                    pollution: host + adminRootPath + "/data/w/decisionAnalysis/portray/labelSystem/pollution.json",
                    business: host + adminRootPath + "/data/w/decisionAnalysis/portray/labelSystem/business.json",
                    basic: host + adminRootPath + "/data/w/decisionAnalysis/portray/labelSystem/basic.json",
                    count: host + adminRootPath + "/data/w/decisionAnalysis/portray/labelSystem/count.json",
                    benefit: host + adminRootPath + "/data/w/decisionAnalysis/portray/labelSystem/benefit.json",
                    influence: host + adminRootPath + "/data/w/decisionAnalysis/portray/labelSystem/influence.json",
                    credit: host + adminRootPath + "/data/w/decisionAnalysis/portray/labelSystem/credit.json",
                    weather: host + adminRootPath + "/data/w/decisionAnalysis/portray/labelSystem/weather.json"
                },
                information: {
                    list: host + adminRootPath + "/data/w/decisionAnalysis/portray/information/list.json",
                    url: host + adminRootPath + "/data/w/decisionAnalysis/portray/information/1.json"
                },
                algorithm: {
                    list: host + adminRootPath + "/data/w/decisionAnalysis/portray/algorithm/list.json",
                    url: host + adminRootPath + "/data/w/decisionAnalysis/portray/algorithm/1.json",
                    total: host + adminRootPath + "/data/w/decisionAnalysis/portray/algorithm/total.json",
                    percent: host + adminRootPath + "/data/w/decisionAnalysis/portray/algorithm/percent.json",
                    save: host + adminRootPath + "/data/w/decisionAnalysis/portray/algorithm/save.json"
                },
                businessPortrait: {
                    list: host + adminRootPath + "/data/w/decisionAnalysis/portray/businessPortrait/list.json",
                    url: host + adminRootPath + "/data/w/decisionAnalysis/portray/businessPortrait/1.json"
                }
                ,
                labelRetrieval: {
                    list: host + adminRootPath + "/data/w/decisionAnalysis/portray/labelRetrieval/list.json",
                    url: host + adminRootPath + "/data/w/decisionAnalysis/portray/labelRetrieval/1.json",
                    business: host + adminRootPath + "/data/w/decisionAnalysis/portray/labelRetrieval/business.json"
                }
            },
            falseRecognition: {
                modelManagement: {
                    list: host + adminRootPath + "/data/w/decisionAnalysis/falseRecognition/modelManagement/list.json"
                },
                recognitionDetail: {
                    companies: host + adminRootPath + "/data/w/decisionAnalysis/falseRecognition/recognitionDetail/companies.json",
                    url: host + adminRootPath + "/data/w/decisionAnalysis/falseRecognition/recognitionDetail/0.json"
                }
            },
            thinkTankService: {
                thinkTank: {
                    time: host + adminRootPath + "/data/w/decisionAnalysis/thinkTankService/thinkTank/time.json",
                    industry: host + adminRootPath + "/data/w/decisionAnalysis/thinkTankService/thinkTank/industry.json",
                    policy: host + adminRootPath + "/data/w/decisionAnalysis/thinkTankService/thinkTank/policy.json",
                    district: host + adminRootPath + "/data/w/decisionAnalysis/thinkTankService/thinkTank/district.json"
                }
            },
            prediction: {
                caseAnalysis: {
                    process: host + adminRootPath + "/data/w/decisionAnalysis/prediction/caseAnalysis/process.json",
                    stability: host + adminRootPath + "/data/w/decisionAnalysis/prediction/caseAnalysis/stability.json",
                    local: host + adminRootPath + "/data/w/decisionAnalysis/prediction/caseAnalysis/local.json",
                    foreign: host + adminRootPath + "/data/w/decisionAnalysis/prediction/caseAnalysis/foreign.json",
                    combination: host + adminRootPath + "/data/w/decisionAnalysis/prediction/caseAnalysis/combination.json"
                }
            }
        }
    }
});

